Bug 539377 – Unnecessary warnings when GtkTreeView is not realized
authorKristian Rietveld <kris@gtk.org>
Thu, 30 Jul 2009 12:17:00 +0000 (14:17 +0200)
committerKristian Rietveld <kris@gtk.org>
Thu, 30 Jul 2009 18:24:31 +0000 (20:24 +0200)
commit069a593b0fc73cffe2015558a0c8160c92c61465
tree3bb40f2e1e79ce741e686d377e457760a935b2a0
parentff10f9ce0243a06d24e1319fa546d5a6e6d5eb69
Bug 539377 – Unnecessary warnings when GtkTreeView is not realized

Adapt gtk_tree_view_get_path_at_pos() and
gtk_tree_view_get_drag_dest_row() to just return FALSE when bin_window
is NULL and not hit a warning.  Makes this case consistent with the tree
view not having a model.  Documentation has been updated to clarify
this, unit test has been added.

Fixes bug 539377, based on a patch by Bjorn Lindqvist.
gtk/gtktreeview.c
gtk/tests/treeview.c